package com.mvc.frame.serv;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.frame.dao.entity.TTeacherKqRecord;
import com.mvc.frame.dao.mapper.TTeacherKqRecordMapper;
import com.mvc.frame.iserv.IRestServ;
@Service
public class RestServ implements IRestServ
{

	@Autowired
	private TTeacherKqRecordMapper tTeacherKqRecordMapper;
	
	@Override
	public  Object getUserInfo(Integer id)
	{
		TTeacherKqRecord record=tTeacherKqRecordMapper.selectByPrimaryKey(id);
		return record;
	}

	@Override
	public Map<String, Object> getPostObj(String name, Integer age)
	{
		Map<String, Object> result=new HashMap<>(2);
		result.put("name", name);
		result.put("age", age);
		return result;
	}
	
}
